package bueu.bexl;

import static bueu.bexl.utils.TypeUtils.numberValue;

public class MultiplyExpr extends BinayExpr {
	
	public MultiplyExpr(final BexlExpr expr1, final BexlExpr expr2) {
		super(expr1, expr2);
	}

	@Override
	protected final Object evaluate(Object value1, Object value2) {
		return numberValue(value1) * numberValue(value2);
	}
	
	@Override
	public final String toString() {
		return toString("*");
	}
}
